package kr.hkit.powerjava.chapter5.work;

import java.util.Scanner;

public class programming4 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		final double PI = 3.141592;
		double r;
		double h;
		double v;
		
		System.out.println("원기등 밑면의 반지름을 입력하시오.");
		r = input.nextDouble();
		System.out.println("원기둥의 높이를 입력하시오.");
		h = input.nextDouble();
		v = PI * r * r * h;
		
		System.out.println("원기둥의 부피는 " + v + "입니다.");
		
	}

}
